/*
 * @Author: FredWang
 * @Date:   2018-06-29 15:50:01
 * @Last Modified by:   FredWang
 * @Last Modified time: 2018-12-24 14:27:46
 */

import LoadingPage from '@/components/loading/app.vue'
import GuidePage from '@/page/developer/guide/app.vue'
import NamingPage from '@/page/developer/naming/app.vue'
import HtmlPage from '@/page/developer/html/app.vue'
import JsPage from '@/page/developer/js/app.vue'
import IdePage from '@/page/developer/ide/app.vue'
import CliPage from '@/page/developer/cli/app.vue'
import { BASE_URL } from '@/utils/config'
export default [{
        path: '/ued',
        redirect: { name: 'frontEnd' }
    },
    {
        path: '/loading',
        name: 'loading',
        component: LoadingPage
    },
    {
        path: `${BASE_URL}/frontEnd`,
        name: 'frontEnd',
        component: GuidePage
    },
    {
        path: `${BASE_URL}/guide`,
        name: 'guide',
        component: GuidePage
    },
    {
        path: `${BASE_URL}/naming`,
        name: 'naming',
        component: NamingPage
    },
    {
        path: `${BASE_URL}/html`,
        name: 'html',
        component: HtmlPage
    },
    {
        path: `${BASE_URL}/ide`,
        name: 'ide',
        component: IdePage
    },
    {
        path: `${BASE_URL}/js`,
        name: 'js',
        component: JsPage
    },
    {
        path: `${BASE_URL}/cli`,
        name: 'cli',
        component: CliPage
    },
    {
        path: `${BASE_URL}/case`,
        name: 'case',
        component: LoadingPage
    }
]